Make drops end up at the right spot. (#342072, Yevgen Muntyan)
authorMatthias Clasen <mclasen@redhat.com>
Thu, 18 May 2006 16:42:56 +0000 (16:42 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 18 May 2006 16:42:56 +0000 (16:42 +0000)
2006-05-18  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkentry.c (gtk_entry_drag_data_received): Make drops
end up at the right spot.  (#342072,  Yevgen Muntyan)

ChangeLog
ChangeLog.pre-2-10
gtk/gtkentry.c

index f0645b183fe7c4a7503989e1481d4a6bcf886bd1..e794d4e6deb66b790fb50e3970a3226d031b450f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-18  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkentry.c (gtk_entry_drag_data_received): Make drops
+       end up at the right spot.  (#342072,  Yevgen Muntyan)
+
 2006-05-18  Michael Natterer  <mitch@imendio.com>
 
        * gtk/gtkrange.c: canonicalize the name of the "activate-slider"
index f0645b183fe7c4a7503989e1481d4a6bcf886bd1..e794d4e6deb66b790fb50e3970a3226d031b450f 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-18  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkentry.c (gtk_entry_drag_data_received): Make drops
+       end up at the right spot.  (#342072,  Yevgen Muntyan)
+
 2006-05-18  Michael Natterer  <mitch@imendio.com>
 
        * gtk/gtkrange.c: canonicalize the name of the "activate-slider"
index 8892d43a35826e1a87e0566c2440fb9c58e0651c..be5532a5dd20c18189a2c65d62cf8a2a8246ea45 100644 (file)
@@ -5098,6 +5098,9 @@ gtk_entry_drag_data_received (GtkWidget        *widget,
 
   str = (gchar *) gtk_selection_data_get_text (selection_data);
 
+  x -= widget->style->xthickness;
+  y -= widget->style->ythickness;
+
   if (str && entry->editable)
     {
       gint new_position;